<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../base.jsp"%>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
</head>

<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <section class="content-header">
        <h1>
            留言管理
            <small>留言列表</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <!-- 正文区域 -->
    <section class="content">

        <!-- .box-body -->
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">留言列表</h3>
            </div>

            <div class="box-body">

                <!-- 数据表格 -->
                <div class="table-box">

                    <div class="box-tools pull-right">
                        <div class="has-feedback">
                            <input type="text" class="form-control input-sm" placeholder="搜索">
                            <span class="glyphicon glyphicon-search form-control-feedback"></span>
                        </div>
                    </div>
                    <!--工具栏/-->

                    <!--数据列表-->
                    <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
                        <thead>
                          <tr>
                              <th class="" style="padding-right:0px;">
                                  <input type="checkbox" name="selid" onclick="checkAll('id',this)">
                              </th>
                              <th class="sorting">留言人姓名</th>
                              <th class="sorting">留言人电话</th>
                              <th class="sorting">留言内容</th>
                              <th class="sorting" data-action="dispalycolor">状态</th>
                           </tr>
                        </thead>

                    </td>
                        <tbody>
                        <c:forEach items="${page.list}" var="feedBack">
                            <tr>
                                <td><input type="checkbox" name="id" value="${feedBack.id }"/></td>
                                <td>${feedBack.fbpUsername}</td>
                                <td>${feedBack.fbpTelephone}</td>
                                <td>${feedBack.fbContent}</td>
                                <td><c:if test="${feedBack.isRead==0}"><font color="#000000">未读</font></c:if>
                                    <c:if test="${feedBack.isRead==1}"><font color="#C0C0C0">已读</font></c:if>
                                </td>
                                <th class="text-center"><button type="button" class="btn bg-olive btn-xs" onclick='location.href="/system/feed/edit.do?id=${feedBack.id}"'>编辑</button></th>
                            </tr>

                        </c:forEach>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="box-footer">
                <jsp:include page="../../common/page.jsp">
                    <jsp:param value="${ctx}/system/feed/findMessage.do" name="pageUrl"/>
                </jsp:include>
            </div>
        </div>
    </section>
</div>
</body>
</html>